package com.xique.door.bean.request.visitor;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author shd
 * @create 2022/2/26 10:30
 */
@Data
public class VisitorAddRequest {

    @NotEmpty(message = "访客类型不能为空")
    private String type;

    @NotNull(message = "被访人信息不能为空")
    private Long userId;

    @NotEmpty(message = "访客名字不能为空")
    private String visitorName;

    @NotEmpty(message = "访客手机不能为空")
    private String visitorPhone;

    private String faceKey;

    private String faceUrl;

    private String gender;

    @NotBlank(message = "访问类型不能为空")
    private String visitorType;

    private String address;

    private String remark;

    @NotNull(message = "来访开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @NotNull(message = "来访结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Integer effectNumber;

    private Long areaId;

    private Long buildingId;

    private Long houseId;

    private String verifyType;

    private Long parkId;
}
